	<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ page import="cn.edu.cqupt.cxcy.model.*" %>
<%
	String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<style type="text/css">
#Editor{
  position: absolute;
  height: 520px;
  background-color: #fff;
  z-index: 100;
  padding: 10px;
}
#Editor>form>p{
    line-height: 25px;
    padding-left: 10px;
}

#Editor input.news_sub{
  display: block;
  margin:auto;
  margin-top: 10px;
  cursor: pointer;
    width: 80px;
    height: 30px;
    border-radius: 5px;
    background-color: #90c624;
    color: #fff;
    font-size: 15px;
    border: 1px solid #ccc;

}
#Editor>form>p>input{
    width:200px;
    height: 18px;
}
#Editor>form>p>select{
    width:200px;
}
.team_logo{
  width:120px;
  height:120px;
  margin:0 auto;
}
.team_logo input{
  width:100px;
}
.team_info>p{
  text-align:center;
}
.team_info>p>input{
  width:200px;
  
}
</style>
<%Team team = new Team();
   String serverPath = "";
   if(session.getAttribute("serverPath") != null){
	   serverPath = (String)session.getAttribute("serverPath");
   }
   if((Team)request.getAttribute("team") != null){
	team = (Team)request.getAttribute("team");
   }
    String teamName = team.getTe_name() == null ? "":team.getTe_name();
    String teamLogo = team.getTe_logo() == null ? "":team.getTe_logo();
    String teamExplain = team.getTe_explain() == null ? "":team.getTe_explain(); %>
<div id="Editor">
 <form method="post" action="./team/addteaminfo" enctype="multipart/form-data">
    <div class="team_info clearfix">
        <div class="team_logo">
            <img src="<%=teamLogo %>" width="100" height="100">
             <p><input type="file" name="teamlogo" width="120px"></p>
        </div>
       	<p><b>名称:</b> <input type="text" name="teamName" value=<%=teamName %>></p>
    </div>  
    <script id="editor" type="text/plain"></script>
    <!-- <input type="hidden" name="content" value="" id="content"> -->
    <input type="submit" class="news_sub"value="提交">
    </form>
</div>
<script type="text/javascript">
UE.delEditor('editor');
var ue = UE.getEditor('editor',{
    initialFrameHeight:320  //初始化编辑器高度,默认320
    ,initialFrameWidth:700
    ,initialStyle:'p{line-height:1em; font-size: 12px; }'
    ,textarea:"teamExplain"
});
</script>